<a href='<?php e_action("addNature","id={$r['gopen_id']}");?>'>添加属性</a><br/><br/>
<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>属性名称</th>
        <th>库存</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['attr'] as $v){?>
        <tr>
            <td><?php echo $v['id']?></td>
            <td><?php echo $v['name']?></td>
            <td><?php echo $v['stock']?></td>
            <td><a href='<?php e_action("natureModify","id={$v['id']}");?>'>修改</a> / <a href='<?php e_action("natureDelete","id={$v['id']}");?>'>删除</a></td>
        </tr>
    <?php }?>
    </tbody>
</table>
